/*
31 12 11 10 9 7 6 4 0 -2 
乐进 于禁 关羽 张合 张辽 张飞 徐晃 赵云 赵云 马超 黄忠 
 *
 */
#include <iostream>
#include <set>
using namespace std;
int main(void){
	int a1[] = {-2, 0,31, 11,6,7,12,10,9,10};
	set<int, greater<int> > set1(a1, a1+10);
	set<int, greater<int> >::iterator it;   
	set1.insert(4);
	for(it=set1.begin(); it!=set1.end(); it++){
		cout << *it << " ";
	}
	cout << endl;

	string a2[] ={"赵云", "张飞", "关羽", "马超", "黄忠", "张辽", "乐进", "于禁", "张合", "徐晃"};
	multiset<string> set2(a2, a2+10);
	multiset<string>::iterator it2;
	set2.insert("赵云");
	for(it2=set2.begin(); it2!=set2.end(); it2++){
		cout << *it2 << " ";
	}
	cout << endl;
	return 0;
}
